<html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script>
        function person(name, age) {
            this.name = name
            this.age = age;
        }
    </script>
</head>

<body >
<div id="div"></div>
<script>
    p = new person("李白", 3)
    document.write(p.name + p.age)
</script>
</body>
</html>